package org.zjt.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.zjt.annotation.ConditionalRpcServer;
import org.zjt.netty.server.NettyServer;

/**
 * DESC
 *
 * @author
 * @create 2017-04-14 下午11:35
 **/
//@Configuration
public class ProviderConfig {

    @Autowired
    ApplicationProperties applicationProperties;

    @Bean
    public ZKConnectCenter zkConnectCenter()throws Exception{
        ZKConnectCenter connectCenter = new ZKConnectCenter(applicationProperties.getRegisterConfig());
        return connectCenter;
    }




}
